package com.coldchain.admin.user.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.coldchain.admin.user.entity.Admin;
import com.coldchain.common.auth.AuthUser;
import com.coldchain.vo.AdminVo;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * <p>
  * 管理员表 Mapper 接口
 * </p>
 *
 * @author fangliai
 * @since 2018-08-30
 */
public interface AdminMapper extends BaseMapper<Admin> {

    AuthUser validate(@Param("username") String username, @Param("password") String password);

   List<AdminVo>  getAdminVo();

}
